package general.messages;

import general.Agent;

public class SuccessMessage implements Message {

	byte[] result;
	public SuccessMessage(byte[] result) {
		this.result = result;
	}
	
	@Override
	public boolean handle(Agent e) {
		return e.handleMessage(this);
	}

	public String getResult() {
		String str = "";
		str+=("[");
		for (int i=0; i<result.length-1; i++){
			str+=(result[i] +", ");
		}
		str+=(result[result.length-1]+"]");
		return str;
	}

}
